package xyz.imeans.w.service.core;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Service;
import xyz.imeans.w.config.FieldEnum;
import xyz.imeans.w.config.InitCreateFactory;
import xyz.imeans.w.util.XmUtil;

@Service
public class XmService extends TestService implements InitializingBean {
    @Override
    public void afterPropertiesSet() throws Exception {
        InitCreateFactory.initService(FieldEnum.XM, this);
    }

    @Override
    public Object createValue(String[] os) {
        return XmUtil.create(os[0]);
    }
}
